package chat

import (
	"django_blog_gin/internal/svc"

	"github.com/gin-gonic/gin"
)

type ChatHandler struct {
	GetMessages    gin.HandlerFunc
	SearchMessages gin.HandlerFunc
	UploadFile     gin.HandlerFunc
}

func NewChatHandler(svcCtx *svc.ServiceContext) *ChatHandler {
	repo := NewChatAPI(svcCtx)

	return &ChatHandler{
		GetMessages:    repo.GetMessages,
		SearchMessages: repo.SearchMessages,
		UploadFile:     repo.UploadFile,
	}

}
